//
//  AdderModel.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/6/5.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "AdderModel.h"

@implementation AdderModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.distance = dict[@"distance"];
        self.mobilePhone = dict[@"mobilePhone"];
        self.nickName = dict[@"nickName"];
        self.portraitUrl = dict[@"portraitUrl"];
        self.allowStutas = [dict[@"allowStutas"] integerValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[AdderModel alloc]initWithDict:dict];
}

@end
